function getSum(n) {
    var result = 0
    for (var i = 0; i <= n; i++) {
        result = result + i
    }
    return result
}

//暴露
// modules.exports = getSum

// exports = getSum

module.exports = {
    getSum
}